
// 引用网络请求中间件
import request from '@/utils/request.js';



// 参数：
// • url 请求url
// • data 请求参数data
// • needToken 是否需要参数token

/*** 获取约拍套餐 */
export function getShootTC(data) {
	return request({
		url: `/applet/setMeal/shoot/setMealList`,
		method: "GET",
		needToken: true,
	});
}


/*** 约拍下单 */
export function AddShoot(data) {
	return request({
		url: `/applet/payment/cashier/shoot/placeOrder`,
		method: "POST",
		needToken: true,
		params:data
	});
}

/*** 获取约拍订单列表 */
export function getShootList(params) {
	return request({
		url: `/applet/order/shoot/list`,
		method: "GET",
		needToken: true,
		params: params
	});
}

/*** 获取约拍详情 */
export function getYuepaiDetail(orderShootId) {
	return request({
		url: `/applet/order/shoot/info/${orderShootId}`,
		method: 'GET',
		needToken: true,
	});
}

/*** 获取约拍剪辑 */
export function editingSynthesis(data) {
	return request({
		url: `/applet/order/shoot/editingSynthesis`,
		method: 'post',
		needToken: true,
		data
	});
}

// 删除约拍订单
export function deleteYuepais(orderIds) {
	return request({
		url: `/applet/order/shoot/${orderIds}`,
		method: 'DELETE',
		needToken: true,
		// link: 'first',  // 写入link属性为first时使用baseURL2
		// params: params
	})
}


/*** 获取更多服务 */
// export function getMoreService(setMealId) {
// 	return request({
// 		url: `/applet/setMeal/getMoreService/${setMealId}`,
// 		method: "GET",
// 		needToken: true,
// 	});
// }
